Repository navigation
chore: shared Windows agent launcher and full third-party licence notices - #42
Merged
Merged
Conversation
… pnpm and bun shims backend/app/agent_lookup.py is now FormVis's 1.1.0, byte for byte (SHA-256 313fcd40541199c920314516026a0b225aeb4915e9a5dc26bf51d1ba05f1da8e, recorded in setup/agents.py LOOKUP_HASHES). It follows npm, pnpm and bun shims in any letter case and starts their node or bun script or .exe as an argument list, and refuses, as CommandLineRefused, any cmd.exe start whose words the interpreter would change. formcut's 1.0.2 cmd_words is replaced by the family's cmd_safe; dock_tabs.py and agent_connect.py already called start_argv and run without hardening of their own, so no wrapper code is removed. Checked: pytest tests/test_windows_start.py (48 passed), ruff check and format, setup/agents.py sync --check.
… everything that ships, checked in CI setup/notices.py and setup/notices_crates.py, modelled on FormDAM's and formcraft's, write THIRD-PARTY-NOTICES.txt from the Python runtime, the PyInstaller bootloader, the 68 Python packages backend/requirements.txt freezes on macOS, Linux and Windows (requested extras followed; pytest, maturin and PyYAML left out; the six that ship on another platform only read from their published wheels with --wheels), the 23 npm packages the window's build reaches (onnxruntime-node and sharp left out, which the web build of @huggingface/transformers never imports), the 541 crates of src-tauri and the native kernels in backend/native, and three binaries: the FFmpeg sidecar release with its own notices and LGPL-2.1 text in full, FFmpeg's libraries beside PyAV, and Cisco's OpenH264 by reference as a download. --check runs in the CI engine job after the tests. The file is installed beside NOTICE in every installer, frozen into the engine, served at GET /api/notices and shown in Settings, About, Third-party notices, with the strings in en, es, de and the ar, fa, he and hr locale files. Checked: pytest tests (1785 passed, 102 skipped), pytest frontend/tests/window (6 passed), ruff check and format, notices.py --check, skill_maps.py --check, agents sync --check, tsc, vite build.
59 entries in THIRD-PARTY-NOTICES.txt (57 crates, guid-typescript on npm and the flatbuffers Python distribution) carried only their SPDX id because the published package has no licence file. Their upstream licence files, or for five of them the SPDX standard text with the holders the metadata names, are now kept in setup/licence_texts/<kind>/<name>-<version>/ with a SOURCE.txt naming the repository, ref and file URLs. setup/notices_vendored.py fills any section that has no licence file from its folder and writes a note naming the source. notices.py --check now fails when a kept folder lacks SOURCE.txt, belongs to a package that no longer ships, or holds a text the notices do not carry. Regenerating twice gives the same file; apart from the 59 filled entries the sections are unchanged.
On Windows a path on a different drive from the repository has no relative form, so the missing-file message now falls back to the full path. A test covers that case on every system.
…tices # Conflicts: # backend/HASHOUT_LOG.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Tests
How to ship